<!DOCTYPE html>
<html>
<head data-suburl="">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	
		<meta name="author" content="diogo" />
		<meta name="description" content="gnu-social - GNU social is a social communication software used in federated social networks. It is widely supported and has a large userbase. It is already used by the Free Software Foundation." />
		<meta name="keywords" content="go, git, self-hosted, gogs">
	
	<meta name="referrer" content="no-referrer" />
	<meta name="_csrf" content="SEM3WFhRiRBQwzW24NEPjTh-Gcw6MTYwNDc5MjMyNDExMDMxODE1MA==" />
	<meta name="_suburl" content="" />
	
	
	
		<meta property="og:url" content="https://notabug.org/diogo/gnu-social" />
		<meta property="og:type" content="object" />
		<meta property="og:title" content="diogo/gnu-social">
		<meta property="og:description" content="GNU social is a social communication software used in federated social networks. It is widely supported and has a large userbase. It is already used by the Free Software Foundation.">
		<meta property="og:image" content="https://notabug.org/avatars/12290" />
	

	<link rel="shortcut icon" href="/img/favicon.png" />

	<script src="/js/jquery-1.11.3.min.js"></script>
	<script src="/js/libs/jquery.are-you-sure.js"></script>
        <link href="/img/icon-48.ico" rel="icon" type="image/x-icon" />
        <link href="/img/icon-60.png" rel="apple-touch-icon">
        <link href="/img/icon-76.png" rel="apple-touch-icon" sizes="76x76">
        <link href="/img/icon-120.png" rel="apple-touch-icon" sizes="120x120">
        <link href="/img/icon-152.png" rel="apple-touch-icon" sizes="152x152">
        <link href="/img/icon-240.png" rel="apple-touch-icon" sizes="240x240">

	<link rel="stylesheet" href="/assets/font-awesome-4.6.3/css/font-awesome.min.css">
	<link rel="stylesheet" href="/assets/octicons-4.3.0/octicons.min.css">

	
	

	

	
	<link rel="stylesheet" href="/css/semantic-2.2.13.min.css">
	<link rel="stylesheet" href="/css/gogs.css?v=6fc9e85aa88133794d3434ea74aa557a">
	<link rel="stylesheet" href="/css/notabug.css">

	
	<script src="/js/semantic-2.2.13.min.js"></script>
	<script src="/js/gogs.js?v=6fc9e85aa88133794d3434ea74aa557a"></script>

	<title>PHP Notice:  Array to string conversion in /var/www/gnusocial/lib/util/xmloutputter.php on line 141 - NotABug.org: Free code hosting</title>

	<meta name="theme-color" content="#428bca">

	


<noscript><style>.nojs-popup:hover > .menu { display: block ; }</style></noscript>


</head>
<body>
	<div class="full height">
		<noscript>Please enable JavaScript in your browser!</noscript>

		
			<div id="header-div" class="following bar light">
				<div class="ui container">
					<div class="ui grid">
						<div class="column">
							<div class="ui top secondary menu">
								<a class="item brand" href="/">
									<img class="ui mini image" src="/img/favicon.png">
								</a>

								
									<a class="item" href="/">Home</a>
								

								<a class="item" href="/explore/repos">Explore</a>
								

								



									<a class="notabug-item item" href="/help" rel="noreferrer">Help</a>




									<div class="right menu">
										
											<a class="item" href="/user/sign_up">
												<i class="octicon octicon-person"></i> Register
											</a>
										
										<a class="item" href="/user/login?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f120">
											<i class="octicon octicon-sign-in"></i> Sign In
										</a>
									</div>

								
							</div>
						</div>
					</div>
				</div>
			</div>
		


<div class="repository view issue pull">
	<div class="header-wrapper">

	<div class="ui container">
		<div class="ui vertically padded grid head">
			<div class="column">
				<div class="ui header">
					<div class="ui huge breadcrumb">
						<i class="mega-octicon octicon-repo"></i>
						<a href="/diogo">diogo</a>
						<div class="divider"> / </div>
						<a href="/diogo/gnu-social">gnu-social</a>
						
						
					</div>

					
						<div class="ui right">
							<div class="ui labeled button" tabindex="0">
								<a class="ui basic button" href="/diogo/gnu-social/action/watch?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f120">
									<i class="icon fa-eye-slash"></i>Watch
								</a>
								<a class="ui basic label" href="/diogo/gnu-social/watchers">
									9
								</a>
							</div>
							<div class="ui labeled button" tabindex="0">
								<a class="ui basic button" href="/diogo/gnu-social/action/star?redirect_to=%2fdiogo%2fgnu-social%2fissues%2f120">
									<i class="icon fa-star-o"></i>Star
								</a>
								<a class="ui basic label" href="/diogo/gnu-social/stars">
									22
								</a>
							</div>
							
								<div class="ui labeled button" tabindex="0">
									<a class="ui basic button " href="/repo/fork/25974">
										<i class="octicon octicon-repo-forked"></i>Fork
									</a>
									<a class="ui basic label" href="/diogo/gnu-social/forks">
										21
									</a>
								</div>
							
						</div>
					
				</div>
			</div>
		</div>
	</div>


	<div class="ui tabs container">
		<div class="ui tabular menu navbar">
			
				<a class=" item" href="/diogo/gnu-social">
					<i class="octicon octicon-file-text"></i> Files
				</a>
			
			
				<a class="active item" href="/diogo/gnu-social/issues">
					<i class="octicon octicon-issue-opened"></i> Issues <span class="ui blue small label">73</span>
				</a>
			
			
				<a class=" item" href="/diogo/gnu-social/pulls">
					<i class="octicon octicon-git-pull-request"></i> Pull Requests <span class="ui blue small label">3</span>
				</a>
			
			
				<a class=" item" href="/diogo/gnu-social/wiki">
					<i class="octicon octicon-book"></i> Wiki
				</a>
			
			
		</div>
	</div>
	<div class="ui tabs divider"></div>

</div>

	<div class="ui container">
		<div class="navbar">
			<div class="ui compact small menu">
	<a class=" item" href="/diogo/gnu-social/labels">Labels</a>
	<a class=" item" href="/diogo/gnu-social/milestones">Milestones</a>
</div>

			<div class="ui right">
				
					<a class="ui green button" href="/diogo/gnu-social/issues/new">New Issue</a>
				
			</div>
		</div>
		<div class="ui divider"></div>
		
			<div>
				<div class="ui grid">
	
	
		<div class="sixteen wide column title">
	<div class="ui grid">
		<h1 class="twelve wide column">
			<span class="index">#120</span> <span id="issue-title" class="has-emoji">PHP Notice:  Array to string conversion in /var/www/gnusocial/lib/util/xmloutputter.php on line 141</span>
			<div id="edit-title-input" class="ui input" style="display: none">
				<input value="PHP Notice:  Array to string conversion in /var/www/gnusocial/lib/util/xmloutputter.php on line 141">
			</div>
		</h1>
		
	</div>
	
		<div class="ui red large label"><i class="octicon octicon-issue-closed"></i> Closed</div>
	

	
		
		<span class="time-desc">
			
				opened <span class="time-since" title="Thu, 02 Apr 2020 10:11:19 UTC">7 months ago</span> by <a href="/aab">aab</a>
			
			·
			15 comments
		</span>
	
	<div class="ui divider"></div>
</div>

	

	
	<div class="twelve wide column comment-list">
		<ui class="ui comments">
			<div class="comment">
				<a class="avatar" href="/aab">
					<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
				</a>
				<div class="content">
					<div class="ui top attached header">
						<span class="text grey"><a href="/aab">aab</a> commented <a href="#issue-64671"><span class="time-since" title="Thu, 02 Apr 2020 10:11:19 UTC">7 months ago</span></a></span>
						<div class="ui right actions">
							
						</div>
					</div>
					<div class="ui attached segment">
						<div class="render-content markdown has-emoji">
							
								<p>I got this several times per day in the logs:</p>

<p><code>[error] 31910#31910: *1104369 FastCGI sent in stderr: &#34;PHP message: PHP Notice:  Array to string conversion in /var/www/gnusocial/lib/util/xmloutputter.php on line 141&#34; while reading response header from upstream, client: ip_address, server: gnusocial.net, request: &#34;POST /api/statuses/update.xml HTTP/2.0&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;</code></p>

<p>Could this be related to the message in the UI &#34;File not found in the system&#34;? Any hint to fix it?</p>

							
						</div>
						<div class="raw-content hide">I got this several times per day in the logs:

&lt;code&gt;[error] 31910#31910: *1104369 FastCGI sent in stderr: &#34;PHP message: PHP Notice:  Array to string conversion in /var/www/gnusocial/lib/util/xmloutputter.php on line 141&#34; while reading response header from upstream, client: ip_address, server: gnusocial.net, request: &#34;POST /api/statuses/update.xml HTTP/2.0&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;&lt;/code&gt;

Could this be related to the message in the UI &#34;File not found in the system&#34;? Any hint to fix it?</div>
						<div class="edit-content-zone hide" data-write="issue-64671-write" data-preview="issue-64671-preview" data-update-url="/diogo/gnu-social/issues/120/content" data-context="/diogo/gnu-social"></div>
					</div>
					
						<div class="ui bottom attached segment">
							<div class="ui small images">
								
									<a target="_blank" href="/attachments/0cab979f-bb4c-4d44-a874-e2c8003e2d3e">
										
											<img class="ui image" src="/attachments/0cab979f-bb4c-4d44-a874-e2c8003e2d3e" title='Click to see &#34;file_not_found.png&#34; in a new tab'>
										
									</a>
								
							</div>
						</div>
					
				</div>
			</div>

			
				

				
				
					<div class="comment" id="issuecomment-18163">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18163"><span class="time-since" title="Thu, 02 Apr 2020 16:23:02 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>Just pushed a commit to experimental branch, can you try it?</p>

									
								</div>
								<div class="raw-content hide">Just pushed a commit to experimental branch, can you try it?</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18163-write" data-preview="issuecomment-18163-preview" data-update-url="/diogo/gnu-social/comments/18163" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18166">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18166"><span class="time-since" title="Thu, 02 Apr 2020 16:39:28 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>I just made the changes to xmloutputter.php; i&#39;ll report in some hours, to be sure it is fixed. Thanks!</p>

									
								</div>
								<div class="raw-content hide">I just made the changes to xmloutputter.php; i&#39;ll report in some hours, to be sure it is fixed. Thanks!</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18166-write" data-preview="issuecomment-18166-preview" data-update-url="/diogo/gnu-social/comments/18166" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18167">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18167"><span class="time-since" title="Thu, 02 Apr 2020 16:46:53 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>I just got this:</p>

<p><code>[error] 31910#31910: *1189565 FastCGI sent in stderr: &#34;PHP message: PHP Warning:  XMLWriter::startDocument(): xmlTextWriterStartDocument : not allowed in this context! in /var/www/gnusocial/lib/util/xmloutputter.php on line 94&#34; while reading response header from upstream, client: ip_address, server: gnusocial.net, request: &#34;POST /api/statuses/update.xml HTTP/1.1&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;</code></p>

									
								</div>
								<div class="raw-content hide">I just got this:

&lt;code&gt;[error] 31910#31910: *1189565 FastCGI sent in stderr: &#34;PHP message: PHP Warning:  XMLWriter::startDocument(): xmlTextWriterStartDocument : not allowed in this context! in /var/www/gnusocial/lib/util/xmloutputter.php on line 94&#34; while reading response header from upstream, client: ip_address, server: gnusocial.net, request: &#34;POST /api/statuses/update.xml HTTP/1.1&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;&lt;/code&gt;
</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18167-write" data-preview="issuecomment-18167-preview" data-update-url="/diogo/gnu-social/comments/18167" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18170">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18170"><span class="time-since" title="Thu, 02 Apr 2020 22:16:59 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>that error sounds different/unrelated, is it as frequent?</p>

									
								</div>
								<div class="raw-content hide">that error sounds different/unrelated, is it as frequent?</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18170-write" data-preview="issuecomment-18170-preview" data-update-url="/diogo/gnu-social/comments/18170" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18172">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18172"><span class="time-since" title="Thu, 02 Apr 2020 22:51:43 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>Well, grepping &#34;xmloutputter.php&#34; from nginx&#39;s error log, i got the second log i&#39;ve sent every 6-8 minutes, just the same amount as the first.
I&#39;ve reverted the changes, and the first error is back.</p>

									
								</div>
								<div class="raw-content hide">Well, grepping &#34;xmloutputter.php&#34; from nginx&#39;s error log, i got the second log i&#39;ve sent every 6-8 minutes, just the same amount as the first. 
I&#39;ve reverted the changes, and the first error is back.</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18172-write" data-preview="issuecomment-18172-preview" data-update-url="/diogo/gnu-social/comments/18172" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18173">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18173"><span class="time-since" title="Thu, 02 Apr 2020 23:25:15 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>so, fixing one error just triggered another one that is as frequent... nice..., did anything change in the UI after applying this commit?</p>

									
								</div>
								<div class="raw-content hide">so, fixing one error just triggered another one that is as frequent... nice..., did anything change in the UI after applying this commit?</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18173-write" data-preview="issuecomment-18173-preview" data-update-url="/diogo/gnu-social/comments/18173" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18174">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18174"><span class="time-since" title="Thu, 02 Apr 2020 23:52:21 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>Okay, replaced that commit with one with a couple more changes, let&#39;s see if this helps :)</p>

									
								</div>
								<div class="raw-content hide">Okay, replaced that commit with one with a couple more changes, let&#39;s see if this helps :)</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18174-write" data-preview="issuecomment-18174-preview" data-update-url="/diogo/gnu-social/comments/18174" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18176">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18176"><span class="time-since" title="Fri, 03 Apr 2020 00:05:03 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>No changes in UI as far as i know... I&#39;m applying the changes now and will check in the morning. Good night :)</p>

									
								</div>
								<div class="raw-content hide">No changes in UI as far as i know... I&#39;m applying the changes now and will check in the morning. Good night :)</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18176-write" data-preview="issuecomment-18176-preview" data-update-url="/diogo/gnu-social/comments/18176" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18177">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18177"><span class="time-since" title="Fri, 03 Apr 2020 00:06:10 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<span class="no-content">There is no content yet.</span>
									
								</div>
								<div class="raw-content hide"></div>
								<div class="edit-content-zone hide" data-write="issuecomment-18177-write" data-preview="issuecomment-18177-preview" data-update-url="/diogo/gnu-social/comments/18177" data-context="/diogo/gnu-social"></div>
							</div>
							
								<div class="ui bottom attached segment">
									<div class="ui small images">
										
											<a target="_blank" href="/attachments/74a4fcc8-3dbb-4c51-b64b-459fe849c1b6">
												
													<img class="ui image" src="/attachments/74a4fcc8-3dbb-4c51-b64b-459fe849c1b6" title='Click to see &#34;gn.png&#34; in a new tab'>
												
											</a>
										
									</div>
								</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18185">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18185"><span class="time-since" title="Fri, 03 Apr 2020 07:59:27 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>Ok, i tried last night but i had to reverse the changes, because the UI was gone, only HTML was shown. If i get it right, i had to change xmloutputter.php and xmlstringer.php, right?</p>

<p>The logs showed this (lots of times each):</p>

<p><code>
#0 /var/www/gnusocial/lib/util/framework.php(145): require_once()</p>

<p>#1 [internal function]: GNUsocial_class_autoload(&#39;HTMLOutputter&#39;)</p>

<p>#2 /var/www/gnusocial/lib/action/action.php(45): spl_autoload_call(&#39;HTMLOutputter&#39;)</p>

<p>[error] 15965#15965: *1265173 FastCGI sent in stderr: &#34;PHP message: Uncaught Exception: Error: Class &#39;XMLOutputter&#39; not found in /var/www/gnusocial/lib/util/htmloutputter.php:56</p>

<p>#3 /var/www/gnusocial/lib/util/framework.php(186): require_once(&#39;/var/www/gnusoc...&#39;)</p>

<p>#4 /var/www/gnusocial/lib/util/common.php(27): require_once(&#39;/var/www/gnusoc...&#39;)</p>

<p>#5 /var/www/gnusocial/public/index.php(171): require_once(&#39;/var/www/gnusoc...&#39;)</p>

<p>#6 {main}&#34; while reading upstream, client: ip_address, server: gnusocial.net, request: &#34;POST /inbox.json HTTP/1.1&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;
</code></p>

									
								</div>
								<div class="raw-content hide">Ok, i tried last night but i had to reverse the changes, because the UI was gone, only HTML was shown. If i get it right, i had to change xmloutputter.php and xmlstringer.php, right?

The logs showed this (lots of times each):

&lt;code&gt;
#0 /var/www/gnusocial/lib/util/framework.php(145): require_once()

#1 [internal function]: GNUsocial_class_autoload(&#39;HTMLOutputter&#39;)

#2 /var/www/gnusocial/lib/action/action.php(45): spl_autoload_call(&#39;HTMLOutputter&#39;)

[error] 15965#15965: *1265173 FastCGI sent in stderr: &#34;PHP message: Uncaught Exception: Error: Class &#39;XMLOutputter&#39; not found in /var/www/gnusocial/lib/util/htmloutputter.php:56

#3 /var/www/gnusocial/lib/util/framework.php(186): require_once(&#39;/var/www/gnusoc...&#39;)

#4 /var/www/gnusocial/lib/util/common.php(27): require_once(&#39;/var/www/gnusoc...&#39;)

#5 /var/www/gnusocial/public/index.php(171): require_once(&#39;/var/www/gnusoc...&#39;)

#6 {main}&#34; while reading upstream, client: ip_address, server: gnusocial.net, request: &#34;POST /inbox.json HTTP/1.1&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;
&lt;/code&gt;</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18185-write" data-preview="issuecomment-18185-preview" data-update-url="/diogo/gnu-social/comments/18185" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18192">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18192"><span class="time-since" title="Fri, 03 Apr 2020 14:29:26 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>All right, I replaced that commit with something new that, might not solve the issue, but should produce a more helpful error log, I hope; share with me the php errors and gnu social errors while trying please :)</p>

									
								</div>
								<div class="raw-content hide">All right, I replaced that commit with something new that, might not solve the issue, but should produce a more helpful error log, I hope; share with me the php errors and gnu social errors while trying please :)</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18192-write" data-preview="issuecomment-18192-preview" data-update-url="/diogo/gnu-social/comments/18192" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18217">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18217"><span class="time-since" title="Sat, 04 Apr 2020 19:21:26 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>Ok, i just upgraded to experimental (i think...). Grepping &#34;xmloutputter&#34;, a similar message appears on logs:</p>

<p><code>2020/04/04 21:05:33 [error] 15965#15965: *1625952 FastCGI sent in stderr: &#34;PHP message: PHP Warning:  XMLWriter::startDocument(): xmlTextWriterStartDocument : not allowed in this context! in /var/www/gnusocial/lib/util/xmloutputter.php on line 85&#34; while reading response header from upstream, client: ip_address, server: gnusocial.net, request: &#34;GET /api/statuses/home_timeline.xml?count=20 HTTP/1.1&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;</code></p>

<p>It seems to have changed from &#34;on line 94&#34; to &#34;on line 85&#34;. (Edit) Comparing &#34;xmloutputter.php&#34; from nightly and experimental, the line has changed positions, but it is the same: &#34;$this-&gt;xw-&gt;startDocument(&#39;1.0&#39;, &#39;UTF-8&#39;);&#34;</p>

<p>Besides that, a new one:</p>

<p><code>PHP Fatal error:  Declaration of Atom10Feed::getString() must be compatible with xmlstringer::getString(): string in /var/www/gnusocial/lib/feeds/atom10feed.php on line 49</code></p>

<p>This is in nginx error log; can&#39;t find anything on gs logs.</p>

									
								</div>
								<div class="raw-content hide">Ok, i just upgraded to experimental (i think...). Grepping &#34;xmloutputter&#34;, a similar message appears on logs:

&lt;code&gt;2020/04/04 21:05:33 [error] 15965#15965: *1625952 FastCGI sent in stderr: &#34;PHP message: PHP Warning:  XMLWriter::startDocument(): xmlTextWriterStartDocument : not allowed in this context! in /var/www/gnusocial/lib/util/xmloutputter.php on line 85&#34; while reading response header from upstream, client: ip_address, server: gnusocial.net, request: &#34;GET /api/statuses/home_timeline.xml?count=20 HTTP/1.1&#34;, upstream: &#34;fastcgi://unix:/run/php/php7.3-fpm.sock:&#34;, host: &#34;gnusocial.net&#34;&lt;/code&gt;

It seems to have changed from &#34;on line 94&#34; to &#34;on line 85&#34;. (Edit) Comparing &#34;xmloutputter.php&#34; from nightly and experimental, the line has changed positions, but it is the same: &#34;$this-&gt;xw-&gt;startDocument(&#39;1.0&#39;, &#39;UTF-8&#39;);&#34;

Besides that, a new one:

&lt;code&gt;PHP Fatal error:  Declaration of Atom10Feed::getString() must be compatible with xmlstringer::getString(): string in /var/www/gnusocial/lib/feeds/atom10feed.php on line 49&lt;/code&gt;

This is in nginx error log; can&#39;t find anything on gs logs.</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18217-write" data-preview="issuecomment-18217-preview" data-update-url="/diogo/gnu-social/comments/18217" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18218">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18218"><span class="time-since" title="Sat, 04 Apr 2020 19:59:57 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>fixed the xmlstringer issue. do as suggested in irc and find what plugin is bugging xml headers :)</p>

									
								</div>
								<div class="raw-content hide">fixed the xmlstringer issue. do as suggested in irc and find what plugin is bugging xml headers :)</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18218-write" data-preview="issuecomment-18218-preview" data-update-url="/diogo/gnu-social/comments/18218" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18269">
						<a class="avatar" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/diogo">Diogo Cordeiro</a> commented <a href="#issuecomment-18269"><span class="time-since" title="Tue, 07 Apr 2020 02:35:51 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Owner
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>updates on this?</p>

									
								</div>
								<div class="raw-content hide">updates on this?</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18269-write" data-preview="issuecomment-18269-preview" data-update-url="/diogo/gnu-social/comments/18269" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="comment" id="issuecomment-18280">
						<a class="avatar" href="/aab">
							<img src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e">
						</a>
						<div class="content">
							<div class="ui top attached header">
								<span class="text grey"><a href="/aab">aab</a> commented <a href="#issuecomment-18280"><span class="time-since" title="Tue, 07 Apr 2020 09:49:46 UTC">7 months ago</span></a></span>
								<div class="ui right actions">
									
										<div class="item tag">
											
												Poster
											
										</div>
									
									
								</div>
							</div>
							<div class="ui attached segment">
								<div class="render-content markdown has-emoji">
									
										<p>Sorry, I wanted to wait a bit just in case the error re-appeared. Yes, it is fixed! :)</p>

									
								</div>
								<div class="raw-content hide">Sorry, I wanted to wait a bit just in case the error re-appeared. Yes, it is fixed! :)</div>
								<div class="edit-content-zone hide" data-write="issuecomment-18280-write" data-preview="issuecomment-18280-preview" data-update-url="/diogo/gnu-social/comments/18280" data-context="/diogo/gnu-social"></div>
							</div>
							
						</div>
					</div>
				

			
				

				
				
					<div class="event">
						<span class="octicon octicon-circle-slash"></span>
						<a class="ui avatar image" href="/diogo">
							<img src="/avatars/12290">
						</a>
						<span class="text grey"><a href="/diogo">diogo</a> closed <a id="event-18283" href="#event-18283"><span class="time-since" title="Tue, 07 Apr 2020 13:33:33 UTC">7 months ago</span></a></span>
					</div>
				

			

			

			
				<div class="ui warning message">
					<a href="/user/login?redirect_to=/diogo/gnu-social/issues/120">Sign in</a> to join this conversation.
				</div>
			
		</ui>
	</div>

	<div class="four wide column">
		<div class="ui segment metas">
			<div class="ui disabled floating jump select-label dropdown">
				<span class="text">
					<strong>Labels</strong>
					<span class="octicon octicon-gear"></span>
				</span>
				<div class="filter menu" data-action="update" data-update-url="/diogo/gnu-social/issues/120/label">
					<div class="no-select item">Clear labels</div>
					
						<a class=" item" href="#" data-id="1564" data-id-selector="#label_1564"><span class="octicon "></span><span class="label color" style="background-color: #fbca04"></span> bounty</a>
					
						<a class=" item" href="#" data-id="1483" data-id-selector="#label_1483"><span class="octicon "></span><span class="label color" style="background-color: #ee0701"></span> bug</a>
					
						<a class=" item" href="#" data-id="1484" data-id-selector="#label_1484"><span class="octicon "></span><span class="label color" style="background-color: #cccccc"></span> duplicate</a>
					
						<a class=" item" href="#" data-id="1485" data-id-selector="#label_1485"><span class="octicon "></span><span class="label color" style="background-color: #84b6eb"></span> enhancement</a>
					
						<a class="checked item" href="#" data-id="1486" data-id-selector="#label_1486"><span class="octicon octicon-check"></span><span class="label color" style="background-color: #128a0c"></span> help wanted</a>
					
						<a class=" item" href="#" data-id="1487" data-id-selector="#label_1487"><span class="octicon "></span><span class="label color" style="background-color: #e6e6e6"></span> invalid</a>
					
						<a class=" item" href="#" data-id="1488" data-id-selector="#label_1488"><span class="octicon "></span><span class="label color" style="background-color: #cc317c"></span> question</a>
					
						<a class=" item" href="#" data-id="1565" data-id-selector="#label_1565"><span class="octicon "></span><span class="label color" style="background-color: #d4c5f9"></span> RFC</a>
					
						<a class=" item" href="#" data-id="1841" data-id-selector="#label_1841"><span class="octicon "></span><span class="label color" style="background-color: #0052cc"></span> v3</a>
					
						<a class=" item" href="#" data-id="1489" data-id-selector="#label_1489"><span class="octicon "></span><span class="label color" style="background-color: #ffffff"></span> wontfix</a>
					
				</div>
			</div>
			<div class="ui labels list">
				<span class="no-select item hide">No Label</span>
				
					<div class="item">
						<a class="ui label hide" id="label_1564" href="/diogo/gnu-social/issues?labels=1564" style="color: #000; background-color: #fbca04">bounty</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1483" href="/diogo/gnu-social/issues?labels=1483" style="color: #fff; background-color: #ee0701">bug</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1484" href="/diogo/gnu-social/issues?labels=1484" style="color: #000; background-color: #cccccc">duplicate</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1485" href="/diogo/gnu-social/issues?labels=1485" style="color: #000; background-color: #84b6eb">enhancement</a>
					</div>

				
					<div class="item">
						<a class="ui label " id="label_1486" href="/diogo/gnu-social/issues?labels=1486" style="color: #fff; background-color: #128a0c">help wanted</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1487" href="/diogo/gnu-social/issues?labels=1487" style="color: #000; background-color: #e6e6e6">invalid</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1488" href="/diogo/gnu-social/issues?labels=1488" style="color: #fff; background-color: #cc317c">question</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1565" href="/diogo/gnu-social/issues?labels=1565" style="color: #000; background-color: #d4c5f9">RFC</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1841" href="/diogo/gnu-social/issues?labels=1841" style="color: #fff; background-color: #0052cc">v3</a>
					</div>

				
					<div class="item">
						<a class="ui label hide" id="label_1489" href="/diogo/gnu-social/issues?labels=1489" style="color: #000; background-color: #ffffff">wontfix</a>
					</div>

				
			</div>

			<div class="ui divider"></div>

			<div class="ui disabled floating jump select-milestone dropdown">
				<span class="text">
					<strong>Milestone</strong>
					<span class="octicon octicon-gear"></span>
				</span>
				<div class="menu" data-action="update" data-update-url="/diogo/gnu-social/issues/120/milestone">
					<div class="no-select item">Clear milestone</div>
					
					
				</div>
			</div>
			<div class="ui select-milestone list">
				<span class="no-select item ">No Milestone</span>
				<div class="selected">
					
				</div>
			</div>

			<div class="ui divider"></div>

			<input id="assignee_id" name="assignee_id" type="hidden" value="">
			<div class="ui disabled floating jump select-assignee dropdown">
				<span class="text">
					<strong>Assignee</strong>
					<span class="octicon octicon-gear"></span>
				</span>
				<div class="menu" data-action="update" data-update-url="/diogo/gnu-social/issues/120/assignee">
					<div class="no-select item">Clear assignee</div>
					
				</div>
			</div>
			<div class="ui select-assignee list">
				<span class="no-select item hide">No assignee</span>
				<div class="selected">
					
						<a class="item" href="/diogo/gnu-social/issues?assignee=12290"><img class="ui avatar image" src="/avatars/12290"> Diogo Cordeiro</a>
					
				</div>
			</div>

			<div class="ui divider"></div>

			<div class="ui participants">
				<span class="text"><strong>2 Participants</strong></span>
				<div>
					
						<a href="/aab">
							<img class="ui avatar image poping up" src="https://seccdn.libravatar.org/avatar/8e0ba2a1c26a4ecd23662fad4af3dc5e" data-content="aab" data-position="top center" data-variation="small inverted">
						</a>
					
						<a href="/diogo">
							<img class="ui avatar image poping up" src="/avatars/12290" data-content="Diogo Cordeiro" data-position="top center" data-variation="small inverted">
						</a>
					
				</div>
			</div>
		</div>
	</div>
</div>

<div class="hide" id="edit-content-form">
	<div class="ui comment form">
		<div class="ui top attached tabular menu">
			<a class="active write item">Write</a>
			<a class="preview item" data-url="/api/v1/markdown" data-context="/diogo/gnu-social">Preview</a>
		</div>
		<div class="ui bottom attached active write tab segment">
			<textarea tabindex="1" id="content" name="content"></textarea>
		</div>
		<div class="ui bottom attached tab preview segment markdown">
			Loading...
		</div>
		<div class="text right edit buttons">
			<div class="ui basic blue cancel button" tabindex="3">Cancel</div>
			<div class="ui green save button" tabindex="2">Save</div>
		</div>
	</div>
</div>

<div class="hide" id="no-content">
	<span class="no-content">There is no content yet.</span>
</div>

			</div>
		
	</div>
</div>

	</div>
	<footer>
		<div class="ui container">
			<div class="ui left">



				<a href="/tos">Terms of Service</a>
				&bull;
				<a href="/about">About us</a>
				&bull;
				<a href="/outages">Outages</a>
				&bull;
				<a href="/hp/gogs/issues">Report a problem</a>
				&bull;
				<a href="/assets/librejs/librejs.html" data-jslicense="1">Javascript licenses</a>
				&bull;
				<a href="/fingerprints">SSH Fingerprints</a>



			</div>
			<div class="ui right links">
				
				<div class="ui language bottom floating slide up dropdown link item">
					<i class="world icon"></i>
					<div class="text">English</div>
					<div class="menu">
						
							<a class="item active selected" href="#">English</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=zh-CN">简体中文</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=zh-HK">繁體中文（香港）</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=zh-TW">繁體中文（臺灣）</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=de-DE">Deutsch</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=fr-FR">français</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=nl-NL">Nederlands</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=lv-LV">latviešu</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=ru-RU">русский</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=ja-JP">日本語</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=es-ES">español</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=pt-BR">português do Brasil</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=pl-PL">polski</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=bg-BG">български</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=it-IT">italiano</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=fi-FI">suomi</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=tr-TR">Türkçe</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=cs-CZ">čeština</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=sr-SP">српски</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=sv-SE">svenska</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=ko-KR">한국어</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=gl-ES">galego</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=uk-UA">українська</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=en-GB">English (United Kingdom)</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=hu-HU">Magyar</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=sk-SK">Slovenčina</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=id-ID">Indonesian</a>
						
							<a class="item " href="/diogo/gnu-social/issues/120?lang=fa-IR">Persian</a>
						
					</div>
				</div>



				
			</div>
		</div>
	</footer>
</body>



	<link rel="stylesheet" href="/plugins/highlight-9.6.0/github.css">
	<script src="/plugins/highlight-9.6.0/highlight.pack.js"></script>




	<link rel="stylesheet" href="/plugins/dropzone-4.2.0/dropzone.css">
	<script src="/plugins/dropzone-4.2.0/dropzone.js"></script>

<script src="/js/libs/emojify-1.1.0.min.js"></script>
<script src="/js/libs/clipboard-1.5.9.min.js"></script>
	
</html>

